#ifndef _STATEWRAPPER_H_
#define _STATEWRAPPER_H_

#include "ptrContainer.h"
#include "basestate.h"

class basestate;

class statewrapper{
  public:
    statewrapper(ptrContainer* container);
    ~statewrapper();

    void draw(int &drawtime);
    bool update(int &endtime, int &ticktime);
    void changestate(int deststate);

  private:
    ptrContainer* w_container;
    basestate* w_activestate;
    basestate** w_allstates;
    int w_statecount;
};

#endif
